package com.um.info.dto.base;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.cs.framework.common.annotation.NotNull;
import com.cs.framework.common.bo.BoBase;

/**
 * UM菜单权限
 *
 * @author hedongzhou
 *
 */
@Entity
@Table(name = "um_menu_access")
public class UmMenuAccessDto extends BoBase {

	private static final long serialVersionUID = 8970391463385539210L;

	/**
	 * 权限编号
	 */
	@Id
	@GeneratedValue(generator = "umAccessGenerator")
	@GenericGenerator(name = "umAccessGenerator", strategy = "increment")
	@Column(name = "access_no")
	private Long accessNo;

	/**
	 * 用户名
	 */
	@Column(name = "user_id")
	@NotNull("用户名")
	private String userId;

	/**
	 * 菜单ID
	 */
	@Column(name = "menu_id")
	@NotNull("菜单ID")
	private String menuId;

	public Long getAccessNo() {
		return accessNo;
	}

	public void setAccessNo(Long accessNo) {
		this.accessNo = accessNo;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

}
